<template>
    <div class="container-son">
        {{ msg }}
    </div>
</template>
<script lang='ts' setup>
import {inject} from 'vue'
const msg=inject("msg")
console.log('msg',msg);
</script>
<style lang='scss' scoped>
.container-son{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 100px;
    border: 2px dashed red;
}
</style>